﻿@model WeddingEventManagementApp.Models.RegisterModel

@{
    ViewBag.Title = "New System User";
}

<div class="twelve columns">
    <h5>New User</h5>
    <div>
        @Html.ValidationSummary(true, "Errors Have Occured", new {@class="no-bullet"})
    </div>
    
        @using (Html.BeginForm())
        {
            <div class="row">
                <div class="three columns">
                    @Html.LabelFor(m=>m.UserName)
                </div>
                <div class="five columns">
                    @Html.EditorFor(m=>m.UserName)
                </div>
                <div class="four columns">
                    @Html.ValidationMessageFor(m=>m.UserName)
                </div>
            </div>
            
            <div class="row">
                <div class="three columns">
                    @Html.LabelFor(m=>m.Email)
                </div>
                <div class="five columns">
                    @Html.EditorFor(m=>m.Email)
                </div>
                <div class="four columns">
                    @Html.ValidationMessageFor(m=>m.Email)
                </div>
            </div>
            
            <div class="row">
                <div class="three columns">
                    @Html.LabelFor(m=>m.Password)
                </div>
                <div class="five columns">
                    @Html.EditorFor(m=>m.Password)
                </div>
                <div class="four columns">
                    @Html.ValidationMessageFor(m=>m.Password)
                </div>
            </div>
            
            <div class="row">
                <div class="three columns">
                    @Html.LabelFor(m=>m.ConfirmPassword)
                </div>
                <div class="five columns">
                    @Html.EditorFor(m=>m.ConfirmPassword)
                </div>
                <div class="four columns">
                    @Html.ValidationMessageFor(m=>m.ConfirmPassword)
                </div>
            </div>

            <p>
                <input type="submit" class="button" />
            </p>
        }
    
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}